#

echo "$0"

proj_root=$(dirname $(dirname $(realpath $0)))
cd $proj_root

echo "proj_root: ${proj_root}"

# https://pdm.fming.dev/2.4/usage/pep582/
# enable pep582
mkdir -p __pypackages__

sh .devcontainer/install_pdm.sh

#
echo "build ${BUILD_TYPE} python env"
if [ "${BUILD_TYPE}" = "release" ]; then
    pdm install --prod -G deploy --no-self
else
    pdm install --dev --no-self
fi
